package com.wanchuang.hepos.ui.zxing.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.wanchuang.hepos.R;
import com.wanchuang.hepos.ui.base.BaseActivity;

public class PayNextActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pay_next);
        TextView payMessage = findViewById(R.id.tv_pay_message);
        ImageView ivPayImage = findViewById(R.id.iv_pay_logo);
        findViewById(R.id.btn_back).setOnClickListener(v -> finish());
        if (getIntent().getType().equals("success")) {
            payMessage.setText("支付成功!");
            ivPayImage.setBackgroundResource(R.mipmap.img_pay_sucess);
        } else {
            payMessage.setText("支付失败!");
            ivPayImage.setBackgroundResource(R.mipmap.img_pay_fair);
        }

    }
}